package com.woniu.outlet.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 发送订单信息到可靠消息服务，然后支付服务接收
 */
@Component
@FeignClient("finance-reliable-message")
public interface SendOrderMsgToPayFeign {

    @PostMapping("/message/send")
    public boolean sendMessage(
            @RequestParam("exchange") String exchange,
            @RequestParam("routing_key") String routingKey,
            @RequestParam("message_content") String messageContent);
}
